package day14_io.demo06_Buffered字符缓冲流;

import java.io.BufferedWriter;
import java.io.FileWriter;

public class Demo01_BufferedWrite {
    public static void main(String[] args) throws Exception{
        BufferedWriter bw = new BufferedWriter(new FileWriter("E:\\csw\\Demo\\csw1\\csw3.txt"));
        bw.write(97);
        bw.newLine();//换行
        bw.write(98);
        char[] c = {9,98,99};
        bw.write(c);
        bw.write(c,0,2);
        String s = "中国";
        bw.write(s);
        bw.write(s,0,1);
        bw.close();
    }
}
